---
hide_table_of_contents: true
---

import CodeBlock from "@theme/CodeBlock";

# Mem0 Memory

[Mem0](https://github.com/mem0ai/mem0) is a self-improving memory layer for LLM applications, enabling personalized AI experiences that save costs and delight users.

## Setup

Goto [Mem0 Dashboard](https://app.mem0.ai) to get API keys for Mem0.

## Usage

import Example from "@examples/memory/mem0.ts";

import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx";

<IntegrationInstallTooltip></IntegrationInstallTooltip>

```bash npm2yarn
npm install @langchain/openai @langchain/core @langchain/community
```

<CodeBlock language="typescript">{Example}</CodeBlock>
